package cn.itsource.ymcc.client;

import cn.itsource.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
@FeignClient(value = "service-course",fallbackFactory = CourseClientFallbackFactory.class)
public interface CourseClient {
    /**
     * 通过当前登录用户id和课程id查询购买记录
     * @param loginId
     * @param courseId
     * @return
     */
    @GetMapping("/courseUserLearn/loadByLoginIdAndCourseId/{loginId}/{courseId}")
    JSONResult loadByLoginIdAndCourseId(@PathVariable("loginId") Long loginId,
                                        @PathVariable("courseId") Long courseId);
}
